<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath+"admin" + "/"%>">    
    <title>图片上传</title>
    <link rel="stylesheet" type="text/css"
			href="skin/css/base.css">
	<script type="text/javascript">
		function doUpload()
		{
			var files = document.getElementsByTagName("input");
			var fileCnt = 0;
			for(var i = 0; i < files.length; i++) 
			{
				if(files[i].type == "file" && files[i].value == "")
				{
					fileCnt++;					
				}
					
			}		
			if(fileCnt == 5)
			{
				alert("请选择上传文件!");
				return;
			}
			document.uploadFM.submit();
		}
	</script>
  </head>  
  <body leftmargin="8" topmargin="8" background='skin/images/allbg.gif'>
		<!--  内容列表   -->
		<form enctype="multipart/form-data" name="uploadFM" action="<%=path%>/AdminUpload" method="post">			
			<table width="98%" border="0" cellpadding="2" cellspacing="1"
				bgcolor="#D1DDAA" align="center" style="margin-top: 8px">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="2" background="skin/images/tbg.gif">
						&nbsp;选择图片&nbsp;
					</td>
				</tr>					
				
				<tr bgcolor="#FAFAF1">
					<td width="4%" bgcolor="#FAFAF1" align="right">
						图片1
					</td>
					<td height="30" width="96%">
						&nbsp;
						<input size="50" name="imageFile1" class="coolbg" type="file"/>
						&nbsp;备注:&nbsp;<input type = "text" name = "imageFile1" size = "50">
					</td>
				</tr>
				
				<tr bgcolor="#FAFAF1">
					<td width="4%" bgcolor="#FAFAF1" align="right">
						图片2
					</td>
					<td height="30" width="96%">
						&nbsp;
						<input size="50" name="imageFile2" class="coolbg" type="file"/>
						&nbsp;备注:&nbsp;<input type = "text" name = "imageFile2" size = "50">					
					</td>
				</tr>
				
				<tr bgcolor="#FAFAF1">
					<td width="4%" bgcolor="#FAFAF1" align="right">
						图片3
					</td>
					<td height="30" width="96%">
						&nbsp;
						<input size="50" name="imageFile3" class="coolbg" type="file"/>
						&nbsp;备注:&nbsp;<input type = "text" name = "imageFile3" size = "50" >					
					</td>
				</tr>
				
				<tr bgcolor="#FAFAF1">
					<td width="4%" bgcolor="#FAFAF1" align="right">
						图片4
					</td>
					<td height="30" width="96%">
						&nbsp;
						<input size="50" name="imageFile4" class="coolbg" type="file"/>
						&nbsp;备注:&nbsp;<input type = "text" name = "imageFile4" size = "50">					
					</td>
				</tr>
				
				<tr bgcolor="#FAFAF1">
					<td width="4%" bgcolor="#FAFAF1" align="right">
						图片5
					</td>
					<td height="30" width="96%">
						&nbsp;
						<input size="50" name="imageFile5" class="coolbg" type="file"/>
						&nbsp;备注:&nbsp;<input type = "text" name = "imageFile5" size = "50">				
					</td>
				</tr>
				
				<tr bgcolor="#FAFAF1">
					<td height="35" colspan="10">
						&nbsp;
						<input class="coolbg" type="button" value="上传" onclick="doUpload()"/>					
					</td>
				</tr>				
			</table>
		</form>		
	</body>
</html>
